from rest_framework import serializers
from .models import FileUploader


class FileLoaderSerializer(serializers.ModelSerializer):
    class Meta:
        model = FileUploader
        fields = ('id', 'file', 'name', 'upload_date', 'json_file', 'excel_file')
        read_only_fields = ('name', 'json_file', 'excel_file')
